#ifndef GAMETD_BANNER_H
#define GAMETD_BANNER_H


#include <SDL.h>
#include "../core/Timer.h"
#include "../core/Vector2.h"

class Banner {
public:
    Banner();
    ~Banner() = default;
    void SetCenterPosition(const Vector2 &pos);
    void OnUpdate(double delta);
    void OnRender(SDL_Renderer *renderer);
    bool CheckEndDisplay() const;

private:
    Vector2 posCenter;

    Vector2 sizeForeground;
    Vector2 sizeBackground;

    SDL_Texture *texForeground = nullptr;
    SDL_Texture *texBackground = nullptr;

    Timer timerDisplay;
    bool isEndDisplay = false;
};

#endif //GAMETD_BANNER_H
